#include <CommandInsertVehicle.h>
Inheritance diagram for CommandInsertVehicle:

Public Member Functions | |
| CommandInsertVehicle (osg::Vec3 pos, OSGWindows *osgwind, string pathname, float scale) | |
| bool | execute () |
| bool | unexecute () |
Private Attributes | |
| OSGWindows * | osgwind_ |
| Vehicle * | vehicle |
| vector< TraffEduObject * > | insertedObjs_ |
|
||||||||||||||||||||
|
A constructor. Initializes osgwind_ and creates a new vehicle object by using the parameter of pathname.
|
|
|
do the insertion of vehicle object operation.
Implements Command. |
|
|
undo the insertion of vehicle object operation.
Implements Command. |
|
|
a private vector of TraffEduObjects. It holds the inserted vehicle objects. |
|
|
a private variable. It is initialized with the unique OSGWindows instance. |
|
|
a private variable. It is used to hold the created vehicle object. |
1.4.6-NO